package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenj
 * @since 2020-04-13
 */
public class CheckHouseGoods extends Model<CheckHouseGoods> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 盘点表id
     */
    private String checkHouseId;

    /**
     * 商品id
     */
    private String goodsId;

    /**
     * 账目数量
     */
    private BigDecimal stockNum;

    /**
     * 实际数量
     */
    private BigDecimal number;

    /**
     * 盘盈数量
     */
    private BigDecimal addNumber;

    /**
     * 盘亏数量
     */
    private BigDecimal delNumber;

    /**
     * 盘点时的成本价
     */
    private BigDecimal cost;

    /**
     * 盘盈金额
     */
    private BigDecimal addAmount;

    /**
     * 盘亏金额
     */
    private BigDecimal delAmount;

    /**
     * 备注
     */
    private String remark;

    private String companyId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getCheckHouseId() {
        return checkHouseId;
    }

    public void setCheckHouseId(String checkHouseId) {
        this.checkHouseId = checkHouseId;
    }
    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }
    public BigDecimal getStockNum() {
        return stockNum;
    }

    public void setStockNum(BigDecimal stockNum) {
        this.stockNum = stockNum;
    }
    public BigDecimal getNumber() {
        return number;
    }

    public void setNumber(BigDecimal number) {
        this.number = number;
    }
    public BigDecimal getAddNumber() {
        return addNumber;
    }

    public void setAddNumber(BigDecimal addNumber) {
        this.addNumber = addNumber;
    }
    public BigDecimal getDelNumber() {
        return delNumber;
    }

    public void setDelNumber(BigDecimal delNumber) {
        this.delNumber = delNumber;
    }
    public BigDecimal getCost() {
        return cost;
    }

    public void setCost(BigDecimal cost) {
        this.cost = cost;
    }
    public BigDecimal getAddAmount() {
        return addAmount;
    }

    public void setAddAmount(BigDecimal addAmount) {
        this.addAmount = addAmount;
    }
    public BigDecimal getDelAmount() {
        return delAmount;
    }

    public void setDelAmount(BigDecimal delAmount) {
        this.delAmount = delAmount;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CheckHouseGoods{" +
            "id=" + id +
            ", checkHouseId=" + checkHouseId +
            ", goodsId=" + goodsId +
            ", stockNum=" + stockNum +
            ", number=" + number +
            ", addNumber=" + addNumber +
            ", delNumber=" + delNumber +
            ", cost=" + cost +
            ", addAmount=" + addAmount +
            ", delAmount=" + delAmount +
            ", remark=" + remark +
            ", companyId=" + companyId +
        "}";
    }
}
